package edu.hqu.demo.service.impl;

import edu.hqu.demo.mapper.SelectionMapper;
import edu.hqu.demo.pojo.Selection;
import edu.hqu.demo.service.SelectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SelectionServiceImpl implements SelectionService {
    @Autowired
    private SelectionMapper selectMapper;

    @Override
    public Selection getSelectInformation(String Sno){
        return selectMapper.getSelectInformation(Sno);
    }

    @Override
    public void insertSelection(String Sno, String Cno) {
        selectMapper.insertSelection(Sno,Cno);
    }
}
